const db=require("../db/index")
exports.ActiveUserHandler=(req,res)=>{
    sql="select username,id,avatar from user order by logintime limit 0,5"
    db.query(sql,(err,results)=>{
        if (err) return res.R(err)
        if (results.length===0) return res.R("暂无榜单数据！")
        res.send({
            status:200,
            data:results
        })
    })

}

